package com.qeegoo.b2bautozityp.injector.module;

import com.qeegoo.b2bautozityp.api.RequestApi;
import com.qeegoo.b2bautozityp.injector.PerFragment;
import com.qeegoo.b2bautozityp.moudle.order.viewmodel.OrderDetailViewModel;

import dagger.Module;
import dagger.Provides;

/**
 * 王少岩 在 2017/9/13 创建了它
 */

@Module
public class GoodsDetailFragmentModule {

    @Provides
    @PerFragment
    public OrderDetailViewModel provideViewModel(RequestApi requestApi) {
        OrderDetailViewModel viewModel = new OrderDetailViewModel(requestApi);
        return viewModel;
    }

}
